<template>
    <div>
        <van-nav-bar title="列表" left-text="返回" left-arrow @click-left="onClickLeft" />
        <van-cell-group v-for="item in searchdata">
            <van-cell :title="单元格" value="创维（Skyworth）42X6 42英寸10核智能酷开网络平板液晶电视（黑色）" @click="txq"/>
            <van-cell :title="单元格" value="创维(Skyworth) 65M6E 65英寸 4K超高清智能酷开网络液晶电视" />
            <van-cell :title="单元格" value="创维(Skyworth) G7 4K超高清彩电HDR 智能网络液晶平板电视(玫瑰金) 65G7" />
            <van-cell :title="单元格" value="创维电视55G720S 55英寸4色4K 23核智能彩电网络液晶平板电视" />
            <van-cell :title="单元格" value="创维（Skyworth）55H9A 55英寸超薄 全面屏 4K超高清智能电视(黑色)" />
            <van-cell :title="单元格" value="创维（Skyworth）55E5 55吋4K超高清智能电视" />
            <van-cell :title="单元格" value="创维（Skyworth）42X6 42英寸10核智能酷开网络平板液晶电视（黑色）" />
        </van-cell-group>

    </div>
</template>

<script setup>
import {ref} from 'vue'
import {searchApi} from '@/api/api'
import { useRouter } from 'vue-router'
const router = new useRouter()
const searchdata=ref([])
searchApi().then(res=>{
    searchdata.value=res.data.message
    console.log('列表',res);
    
})
const onClickLeft = () => {
    router.push('/home/fl')
}
const txq = () => {
    router.push('/xq')
}
</script>

<style lang="scss" scoped></style>